package com.itcncp.wechat.app.dao.model;

import java.io.Serializable;

public class ItcsCarBrandInfo implements Serializable {
    private Integer id;

    private String name;

    private String fullname;

    private String initial;

    private Integer parentid;

    private String logo;

    private Byte depth;

    private String salestate;

    private String price;

    private Short yeartype;

    private String productionstate;

    private String sizetype;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFullname() {
        return fullname;
    }

    public void setFullname(String fullname) {
        this.fullname = fullname;
    }

    public String getInitial() {
        return initial;
    }

    public void setInitial(String initial) {
        this.initial = initial;
    }

    public Integer getParentid() {
        return parentid;
    }

    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public Byte getDepth() {
        return depth;
    }

    public void setDepth(Byte depth) {
        this.depth = depth;
    }

    public String getSalestate() {
        return salestate;
    }

    public void setSalestate(String salestate) {
        this.salestate = salestate;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public Short getYeartype() {
        return yeartype;
    }

    public void setYeartype(Short yeartype) {
        this.yeartype = yeartype;
    }

    public String getProductionstate() {
        return productionstate;
    }

    public void setProductionstate(String productionstate) {
        this.productionstate = productionstate;
    }

    public String getSizetype() {
        return sizetype;
    }

    public void setSizetype(String sizetype) {
        this.sizetype = sizetype;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", fullname=").append(fullname);
        sb.append(", initial=").append(initial);
        sb.append(", parentid=").append(parentid);
        sb.append(", logo=").append(logo);
        sb.append(", depth=").append(depth);
        sb.append(", salestate=").append(salestate);
        sb.append(", price=").append(price);
        sb.append(", yeartype=").append(yeartype);
        sb.append(", productionstate=").append(productionstate);
        sb.append(", sizetype=").append(sizetype);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ItcsCarBrandInfo other = (ItcsCarBrandInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getFullname() == null ? other.getFullname() == null : this.getFullname().equals(other.getFullname()))
            && (this.getInitial() == null ? other.getInitial() == null : this.getInitial().equals(other.getInitial()))
            && (this.getParentid() == null ? other.getParentid() == null : this.getParentid().equals(other.getParentid()))
            && (this.getLogo() == null ? other.getLogo() == null : this.getLogo().equals(other.getLogo()))
            && (this.getDepth() == null ? other.getDepth() == null : this.getDepth().equals(other.getDepth()))
            && (this.getSalestate() == null ? other.getSalestate() == null : this.getSalestate().equals(other.getSalestate()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getYeartype() == null ? other.getYeartype() == null : this.getYeartype().equals(other.getYeartype()))
            && (this.getProductionstate() == null ? other.getProductionstate() == null : this.getProductionstate().equals(other.getProductionstate()))
            && (this.getSizetype() == null ? other.getSizetype() == null : this.getSizetype().equals(other.getSizetype()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getFullname() == null) ? 0 : getFullname().hashCode());
        result = prime * result + ((getInitial() == null) ? 0 : getInitial().hashCode());
        result = prime * result + ((getParentid() == null) ? 0 : getParentid().hashCode());
        result = prime * result + ((getLogo() == null) ? 0 : getLogo().hashCode());
        result = prime * result + ((getDepth() == null) ? 0 : getDepth().hashCode());
        result = prime * result + ((getSalestate() == null) ? 0 : getSalestate().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getYeartype() == null) ? 0 : getYeartype().hashCode());
        result = prime * result + ((getProductionstate() == null) ? 0 : getProductionstate().hashCode());
        result = prime * result + ((getSizetype() == null) ? 0 : getSizetype().hashCode());
        return result;
    }
}